package com.wm.adapter;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @ClassName: ObjectAdapter
 * @Description: 对象适配器
 * @Author: WM
 * @Date: 2023/3/9 18:59
 */
public class ObjectAdapter implements Targetable {

    private final static Logger logger = LoggerFactory.getLogger(Adapter.class);
    private Source source;

    public ObjectAdapter(Source source) {
        this.source = source;
    }

    @Override
    public void editTextFile() {
        this.source.editTextFile();
    }

    @Override
    public void editWordFile() {
        logger.info("a word file editing");
    }
}
